package com.jyxd.web.controller.assessment;

import com.jyxd.web.data.assessment.TemperatureData;
import com.jyxd.web.data.dto.HttpResult;
import com.jyxd.web.service.assessment.TemperatureDataService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 病人体温单的数据
 */
@Api(tags = "病人体温单数据")
@Controller
@RequestMapping(value = "/temperatureData")
public class TemperatureDataController {

    @Autowired
    private TemperatureDataService temperatureDataService;


    /**
     * 出入数据或者修改数据
     *
     * @return
     */
    @RequestMapping(value = "/insertAndUpdate", method = RequestMethod.POST)
    @ResponseBody
    public HttpResult insert (@RequestBody TemperatureData temperatureData) {
        return temperatureDataService.insert(temperatureData);
    }
}
